import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {DEFAULT_USER, ILoginResult, IUserInfo} from "../../common/common";

@Component({
  selector: 'app-page-user',
  templateUrl: './page-user.component.html',
  styleUrls: ['./page-user.component.scss']
})
export class PageUserComponent implements OnInit {

  @Input() userInfo!: IUserInfo
  @Output() logout: EventEmitter<any> = new EventEmitter<any>()

  constructor() {
    this.userInfo = DEFAULT_USER
  }

  ngOnInit(): void {

  }

  logoutEvent(e: any) {
    this.logout.emit(e)
  }

}
